package com.zigong.app.beans;

import android.support.annotation.NonNull;

import com.ruihang.generalibrary.utils.IDataDate;
import com.ruihang.generalibrary.utils.IShares;
import com.ruihang.generalibrary.utils.UrlUtils;
import com.zigong.app.application.Constances;

import java.sql.Date;

/**
 * Created by rh008 on 2017/7/19.
 */

public class LiveInfo implements IDataDate,IShares {
    /**
     * 直播id
     */
    private String liveId;
    /**
     * 直播简介
     */
    private String liveIntro;
    /**
     * 直播来源
     */
    private String liveSource;
    /**
     * 直播时间
     */
    private String liveTime;
    /**
     * 直播标题
     */
    private String liveTitle;
    /**
     * 直播url
     */
    private String liveUrl;
    /**
     * 直播分享url
     */
    private String sharedUrl;
    /**
     * 直播主持人
     */
    private String liveCompere;
    /**
     * 是否正在直播
     */
    private boolean isLiving;


    private Date dateTemp;

    public String getLiveId() {
        return liveId;
    }

    public void setLiveId(String liveId) {
        this.liveId = liveId;
    }

    public String getLiveIntro() {
        return liveIntro;
    }

    public void setLiveIntro(String liveIntro) {
        this.liveIntro = liveIntro;
    }

    public String getLiveSource() {
        return liveSource;
    }

    public void setLiveSource(String liveSource) {
        this.liveSource = liveSource;
    }

    public String getLiveTime() {
        return liveTime;
    }

    public void setLiveTime(String liveTime) {
        this.liveTime = liveTime;
    }

    public String getLiveTitle() {
        return liveTitle;
    }

    public void setLiveTitle(String liveTitle) {
        this.liveTitle = liveTitle;
    }

    public String getLiveUrl() {
        return liveUrl;
    }

    public void setLiveUrl(String liveUrl) {
        this.liveUrl = liveUrl;
    }

    public String getLiveCompere() {
        return liveCompere;
    }

    public void setLiveCompere(String liveCompere) {
        this.liveCompere = liveCompere;
    }

    public boolean isLiving() {
        return isLiving;
    }

    public void setLiving(boolean living) {
        isLiving = living;
    }

    @Override
    public Date getDataDate() {
        return dateTemp;
    }

    @Override
    public void setDataDate(Date date) {
        dateTemp = date;
    }

    @NonNull
    @Override
    public String getDatePattern() {
        return "yyyy-MM-dd HH:mm:ss";
    }

    @Override
    public String getDateString() {
        return liveTime;
    }

    public String getSharedUrl() {
        return sharedUrl;
    }

    public void setSharedUrl(String sharedUrl) {
        this.sharedUrl = sharedUrl;
    }

    @Override
    public String getShareTitle() {
        return liveTitle;
    }

    @Override
    public String getShareH5() {
        return null;
    }

    @Override
    public String getShareImage() {
        return null;
    }

    @Override
    public String getShareDigest() {
        return null;
    }

    @Override
    public String getShareURL() {
        return UrlUtils.linkUrls(Constances.ST_BASE_URL,sharedUrl);
    }
}
